/**
 * 自动生成！请勿修改！
 */
import { command } from '../core/command';

class Refrigerator {
    constructor(opt = {}) {
        const { device, to, ...opts } = opt;

        this.device = device || {};
        this.opts = opts || {};
        this._to = to;
    }

    get categoryCode() {
        return '010050030';
    }

    get categoryName() {
        return '\u51b0\u7bb1';
    }

    getAntibacterialSwitch(params) {
        return command({
            method: 'getAntibacterialSwitch',
            methodId: 'UvxDDVU5',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getChildLockSwitch(params) {
        return command({
            method: 'getChildLockSwitch',
            methodId: 'p0cr5n3o',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getEnergySavingMode(params) {
        return command({
            method: 'getEnergySavingMode',
            methodId: 'U5suj8OU',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getFreezerCurrentTemperature(params) {
        return command({
            method: 'getFreezerCurrentTemperature',
            methodId: 'UaMClLbK',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getFreezerDoorSwitch(params) {
        return command({
            method: 'getFreezerDoorSwitch',
            methodId: 'U9KmHxNw',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getFreezerSwitch(params) {
        return command({
            method: 'getFreezerSwitch',
            methodId: 'pj7xcpuz',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getFreezerTemperature(params) {
        return command({
            method: 'getFreezerTemperature',
            methodId: 'pWG0dXt9',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getGreenhouseCurrentTemperature(params) {
        return command({
            method: 'getGreenhouseCurrentTemperature',
            methodId: 'UmaSPFWM',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getGreenhouseDoorSwitch(params) {
        return command({
            method: 'getGreenhouseDoorSwitch',
            methodId: 'URPrTGYP',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getGreenhouseSwitch(params) {
        return command({
            method: 'getGreenhouseSwitch',
            methodId: 'pXZushQW',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getGreenhouseTemperature(params) {
        return command({
            method: 'getGreenhouseTemperature',
            methodId: 'pqYwvaiE',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getRefrigeratorCurrentTemperature(params) {
        return command({
            method: 'getRefrigeratorCurrentTemperature',
            methodId: 'UnfcCtBn',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getRefrigeratorDoorSwitch(params) {
        return command({
            method: 'getRefrigeratorDoorSwitch',
            methodId: 'U8OT83Km',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getRefrigeratorSwitch(params) {
        return command({
            method: 'getRefrigeratorSwitch',
            methodId: 'pBTQ0MrR',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getRefrigeratorTemperature(params) {
        return command({
            method: 'getRefrigeratorTemperature',
            methodId: 'pNnZJ72I',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getScreenSwitch(params) {
        return command({
            method: 'getScreenSwitch',
            methodId: 'UODlnSLl',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSwitch(params) {
        return command({
            method: 'getSwitch',
            methodId: 'pkpDAEEk',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getWorkMode(params) {
        return command({
            method: 'getWorkMode',
            methodId: 'pz93w911',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setAntibacterialSwitch(params) {
        return command({
            method: 'setAntibacterialSwitch',
            methodId: 'pdN7VzOb',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setChildLockSwitch(params) {
        return command({
            method: 'setChildLockSwitch',
            methodId: 'pUPQLLMd',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setEnergySavingMode(params) {
        return command({
            method: 'setEnergySavingMode',
            methodId: 'p3deZI5q',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setFreezerSwitch(params) {
        return command({
            method: 'setFreezerSwitch',
            methodId: 'p1vZQTLS',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setFreezerTemperature(params) {
        return command({
            method: 'setFreezerTemperature',
            methodId: 'phEqY8YG',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setGreenhouseSwitch(params) {
        return command({
            method: 'setGreenhouseSwitch',
            methodId: 'pGoxpNbL',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setGreenhouseTemperature(params) {
        return command({
            method: 'setGreenhouseTemperature',
            methodId: 'pgh0u2g3',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setRefrigeratorSwitch(params) {
        return command({
            method: 'setRefrigeratorSwitch',
            methodId: 'pZgRrSWZ',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setRefrigeratorTemperature(params) {
        return command({
            method: 'setRefrigeratorTemperature',
            methodId: 'pDrhgJpV',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setScreenSwitch(params) {
        return command({
            method: 'setScreenSwitch',
            methodId: 'ptRSxcNx',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSwitch(params) {
        return command({
            method: 'setSwitch',
            methodId: 'peH3bdiA',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setWorkMode(params) {
        return command({
            method: 'setWorkMode',
            methodId: 'ppAX3Zwr',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }
}

export default Refrigerator;
